<!--DEBUT HEADER-->
<div class="header">

  <div class="wrapper">
  
	<div class="logo"><img src="img/logowac.png" alt="LogoWAC" /></div>
			
	<div id="login">
	<?php
	if($_POST!=NULL)
		{
		if(($_POST['login'] == NULL) or ($_POST['login'] == 'Login'))
			{
		?>
		<form method="post" action="index.php?page=test">
		<input type="text" value="Login" class="top_box_error left" name="login" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
		<input type="password" value="Password" class="top_box left" name="pwd" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
		<input name="send" type="image" value="GO" class="left go" src="img/go.jpg" alt="go" />
		</form>
		<?php
			}
		if(($_POST['pwd'] == NULL) or ($_POST['pwd'] == 'Password'))
			{
		?>
		<form method="post" action="#">
		<input type="text" value="Login" class="top_box left" name="login" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
		<input type="password" value="Password" class="top_box_error left" name="password" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
		<input name="send" type="image" value="GO" class="left go" src="img/go.jpg" alt="go" />
		</form>
		<?php
			}
		else
			{
				echo "<p>kjhujgbkbkhbghy</p>";
			//header ('location : ./inc/perso.php');
			}
		}
	else{
	?>	
    <form method="post" action="#">
	<input type="text" value="Login" class="top_box left" name="login" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
	<input type="password" value="Password" class="top_box left" name="password" onclick="this.value='';"  /><!--Laisse le "this.value='';" c'est important-->
	<input name="send" type="image" value="GO" class="left go" src="img/go.jpg" alt="go" />
	</form>
	<?php 
	} 
	?>
	<div class="clear"></div>
	</div>
	<div class="menu">
            
				<div class="lien">
					<div class="inside"><a href="index.php">HOME</a></div>
					<div class="tr"></div><!--Laisse c est l arrondi de home-->
					<div class="tl"></div><!--Laisse c est l arrondi de home-->		
				</div>
                
				<div class="lien_autre">
					<div class="inside"><a href="inc/registre.php">INSCRIPTION</a></div>		
				</div>
			</div>
		</div>
	</div>
    
<!--FIN HEADER-->

